package com.mnb.base.mapper;

import com.mnb.base.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper {
    int deleteByPrimaryKey(Long menuId);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    SysMenu selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);

    List<SysMenu> selectMenuList(SysMenu sysMenu);

    List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId);

    SysMenu selectMenuById(@Param("menuId") Long menuId);

    List<String> selectMenuPermsByUserId(@Param("userId") Object userId);
}